#ifndef _DISP_LIGHT_H_
#define _DISP_LIGHT_H_

class CLight
{
public:
	CLight();
	~CLight(){}

	void SetLightIndex(int index);
	int GetLightIndex() {return m_lightIndex;}
	void SetLightParas(float position[], float diffusion[], float specular[]);
	void GetLightRelPosition(float position[]);
	void SetLightGlobalPosition(float position[]);
	void EnableLight();
	void DisableLight();

public:
	void SetLightXPos(float x) {m_relPosition[0] = x;}
	void SetLightYPos(float y) {m_relPosition[1] = y;}
	void SetLightZPos(float z) {m_relPosition[2] = z;}

protected:
private:
	//	for m_relPosition, we store relative position to the camera here
	//	the global light position should be computed via camera.GetGlPosition();
	int m_lightIndex;
	float m_relPosition[4];
	float m_diffLight[4];
	float m_specularLight[4];
};

#endif